package edu.hwadee.entity;

import java.util.Date;

/**
 * Cardepreciation entity. @author MyEclipse Persistence Tools
 */

public class Cardepreciation implements java.io.Serializable {

	// Fields

	private Integer cardepreciationId;
	private Car car;
	private Date depreciationDate;
	private Float initialValue;
	private Float depreciationValue;
	private Float leftValue;

	// Constructors

	/** default constructor */
	public Cardepreciation() {
	}

	/** full constructor */
	public Cardepreciation(Car car, Date depreciationDate, Float initialValue, Float depreciationValue,
			Float leftValue) {
		this.car = car;
		this.depreciationDate = depreciationDate;
		this.initialValue = initialValue;
		this.depreciationValue = depreciationValue;
		this.leftValue = leftValue;
	}

	// Property accessors

	public Integer getCardepreciationId() {
		return this.cardepreciationId;
	}

	public void setCardepreciationId(Integer cardepreciationId) {
		this.cardepreciationId = cardepreciationId;
	}

	public Car getCar() {
		return this.car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	public Date getDepreciationDate() {
		return this.depreciationDate;
	}

	public void setDepreciationDate(Date depreciationDate) {
		this.depreciationDate = depreciationDate;
	}

	public Float getInitialValue() {
		return this.initialValue;
	}

	public void setInitialValue(Float initialValue) {
		this.initialValue = initialValue;
	}

	public Float getDepreciationValue() {
		return this.depreciationValue;
	}

	public void setDepreciationValue(Float depreciationValue) {
		this.depreciationValue = depreciationValue;
	}

	public Float getLeftValue() {
		return this.leftValue;
	}

	public void setLeftValue(Float leftValue) {
		this.leftValue = leftValue;
	}

}